package com.example.zhu.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ManageBookMapper {


    @Select("select area from manage_book where manage_id = #{id}")
    List<String> selectInfo(Integer id);

    void insert(List<String> areas, Integer id);


    @Delete("delete from manage_book where manage_id = #{id};")
    void deleteByManage(Integer id);
}
